package service.xml;

import service.functions.FunctionService;
import service.states.StateService;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: Claudio "Dna" Bonesana
 * Date: 16.04.13
 * Time: 18:00
 * To change this template use File | Settings | File Templates.
 */

@XmlRootElement(name = "Weather")
public class ServiceResponse {

    private ArrayList<StateService> states;
    private ArrayList<FunctionService> functions;

    public ArrayList<StateService> getStates() {
        return states;
    }

    @XmlElement(name = "State")
    public void setStates(ArrayList<StateService> states) {
        this.states = states;
    }

    public ArrayList<FunctionService> getFunctions() {
        return functions;
    }

    @XmlElement(name = "Function")
    public void setFunctions(ArrayList<FunctionService> functions) {
        this.functions = functions;
    }
}
